package com.example.controller.admin;

import com.example.service.impl.SystemServiceImpl;
import com.example.vo.Result;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Description:
 * @Author: aimi
 * @Create: 2024-06-08
 **/
@RestController
@RequestMapping("/admin/system")
@Slf4j
public class AdminSystemController {
    @Resource
    private SystemServiceImpl systemService;

    @Operation(summary = "获取首页dashboard数据")
    @GetMapping("/getAdminDashMap")
    public Result<Map<String,Map<String,Object>>> getAdminDashMap(){
        Map<String,Map<String,Object>> dashMap = systemService.getAdminDashMap();
        return Result.ok(dashMap);
    }
}